use anyhow::Result;
use serde::Deserialize;
use whisper_rs::WhisperContext;

#[derive(Debug, Deserialize)]
pub struct WhisperSettings {
    model: String,
}

impl WhisperSettings {
    pub fn context(&self) -> Result<WhisperContext> {
        WhisperContext::new(&self.model).map_err(Into::into)
    }
}
